def add_info():
    name = input('姓名：')
    msg = input('订单内容：')
    money = input('订单金额:')

    with open('order.txt', 'a', encoding='utf8') as f:
        f.writelines(f'姓名：{name}'.ljust(20) + f'订单信息：{msg}'.ljust(15) + f'订单金额：{money}\n')


def read_info():
    with open('order.txt', 'r', encoding='utf8') as f:
        print(f.read())


if __name__ == '__main__':
    add_info()
    read_info()
